@use 'src/components/style/foundation/spacing' as spacing;
@use 'src/components/style/foundation/colors' as colors;

.ConferenceList {
  width: 100%;
  padding: spacing.spacing(base);

  ul {
    list-style: none;
    padding: 0;
  }
}

.Year {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: spacing.spacing(loose) 0 spacing.spacing(base) 0;
  position: sticky;
  top: 0;
  padding: spacing.spacing(base);
  z-index: 10;
  border-bottom: 1px solid colors.color(grey, lighter);
  background-color: colors.color(background, light);

  :global(.theme--dark) & {
    border-bottom: 1px solid colors.color(grey, darker);
    background-color: colors.color(background, dark);
  }

  h2 {
    margin: 0;
  }
}

.AddConference {
  text-align: right;
  > div {
    margin-bottom: 0.5em;
  }
}

.NoResults {
  text-align: center;
  font-size: 0.9em;
  margin: spacing.spacing(extra-loose);
}
